/* ==================
         开关
 ==================== */
.tien-radio,.tien-checkbox,.tien-switch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-top: 3px;
    margin-bottom: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.tien-radio>.icon,.tien-checkbox>.icon,.tien-switch>.icon {
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translate(0,-50%);
    -ms-transform: translate(0,-50%);
    transform: translate(0,-50%);
    border: 1px solid transparent;
    transition: all .2s ease-in-out
}

.tien-radio>.icon:after,.tien-checkbox>.icon:after,.tien-switch>.icon:after {
    position: absolute;
    content: " ";
    transition: all .2s ease-in-out;
    display: block
}

.tien-radio>.text,.tien-checkbox>.text,.tien-switch>.text {
    line-height: 1.3;
    margin-left: 4px;
    position: relative;
    display: inline-block
}

.tien-radio>input,.tien-checkbox>input,.tien-switch>input {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: none
}

.tien-radio>input ~ .icon,.tien-radio>input ~ .text,.tien-checkbox>input ~ .icon,.tien-checkbox>input ~ .text,.tien-switch>input ~ .icon,.tien-switch>input ~ .text {
    cursor: pointer
}


.tien-switch {
    padding-left: 40px;
    margin-right: 10px
}

.tien-switch>.icon {
    width: 40px;
    height: 24px;
    border-radius: 24px;
    border: 1px solid #0081ff;
    background-color: #0081ff
}

.tien-switch>.icon:before,.tien-switch>.icon:after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background-color: #fff
}

.tien-switch>.icon:before {
    width: 38px;
    height: 22px;
    border-radius: 11px;
    transition: transform .35s cubic-bezier(.45,1,.4,1)
}

.tien-switch>.icon:after {
    width: 22px;
    height: 22px;
    border-radius: 100%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15),0 3px 0 rgba(0,0,0,.1);
    transition: left .35s cubic-bezier(.35,.81,.45,1.47)
}

.tien-switch>.text:after {
    content: attr(text-off)
}

.tien-switch>input:checked ~ .icon:after {
    left: 1rem;
    background-color: #fff
}

.tien-switch>input:checked ~ .icon {
    border-color: #0081ff;
    background-color: #0081ff
}

.tien-switch>input:checked ~ .text:after {
    content: attr(text-on)
}

.tien-switch>input:checked ~ .icon:before {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0)
}

.tien-switch>input:active:not(:disabled):not(.disabled) ~ .icon {
    transition: background-color .1s,border .1s
}

.tien-switch>input:active:not(:disabled):not(.disabled) ~ .icon:after {
    -webkit-transform: scale(1.2,1);
    -ms-transform: scale(1.2,1);
    transform: scale(1.2,1)
}

.tien-switch>input:disabled ~ .icon,.tien-switch>input:disabled ~ .text,.tien-switch>input.disabled ~ .icon,.tien-switch>input.disabled ~ .text {
    opacity: .5;
    cursor: not-allowed
}

.tien-switch.square {
    padding-left: 46px
}

.tien-switch.square>.icon {
    width: 46px;
    border-radius: 0
}

.tien-switch.square>.icon:before {
    width: 44px;
    border-radius: 0
}

.tien-switch.square>.icon:after {
    border-radius: 1px
}

.tien-switch.square>input:checked ~ .icon:after {
    left: 22px
}

.tien-switch.square-text {
    height: 24px;
    padding-left: 56px
}

.tien-switch.square-text>.icon {
    width: 56px
}

.tien-switch.square-text>.icon:before {
    width: 54px
}

.tien-switch.square-text>.text {
    width: 56px;
    height: 24px;
    line-height: 24px;
    margin: 0;
    font-size: 80%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0
}

.tien-switch.square-text>.text:after {
    width: 32px;
    text-align: center;
    position: absolute;
    right: 0
}

.tien-switch.square-text>input:checked ~ .icon:after {
    left: 32px
}

.tien-switch.square-text>input:checked ~ .text:after {
    color: #fff;
    left: 0;
    right: auto
}

.tien-switch.small {
    padding-left: 30px
}

.tien-switch.small>.icon {
    width: 30px;
    height: 18px;
    border-radius: 18px
}

.tien-switch.small>.icon:before {
    width: 28px;
    height: 16px;
    border-radius: 8px
}

.tien-switch.small>.icon:after {
    width: 16px;
    height: 16px
}

.tien-switch.small>.text {
    line-height: 16px
}

.tien-switch.small>input:checked ~ .icon:after {
    left: 12px
}

.tien-switch.small.square {
    padding-left: 34px
}

.tien-switch.small.square>.icon {
    width: 34px;
    height: 18px;
    border-radius: 0
}

.tien-switch.small.square>.icon:before {
    width: 32px;
    height: 16px;
    border-radius: 0
}

.tien-switch.small.square>.icon:after {
    width: 16px;
    height: 16px
}

.tien-switch.small.square>input:checked ~ .icon:after {
    left: 16px
}

.tien-switch.small.square-text {
    height: 18px;
    padding-left: 44px
}

.tien-switch.small.square-text>.icon {
    width: 44px
}

.tien-switch.small.square-text>.icon:before {
    width: 42px
}

.tien-switch.small.square-text>.text {
    width: 44px;
    height: 18px;
    line-height: 18px
}

.tien-switch.small.square-text>.text:after {
    width: 26px
}

.tien-switch.small.square-text>input:checked ~ .icon:after {
    left: 26px
}

.tien-switch.large {
    padding-left: 50px
}

.tien-switch.large>.icon {
    width: 50px;
    height: 30px;
    border-radius: 30px
}

.tien-switch.large>.icon:before {
    width: 48px;
    height: 28px;
    border-radius: 15px
}

.tien-switch.large>.icon:after {
    width: 28px;
    height: 28px
}

.tien-switch.large>input:checked ~ .icon:after {
    left: 20px
}

.tien-switch.large.square {
    padding-left: 58px
}

.tien-switch.large.square>.icon {
    width: 58px;
    border-radius: 0
}

.tien-switch.large.square>.icon:before {
    width: 56px;
    border-radius: 0
}

.tien-switch.large.square>.icon:after {
    width: 28px
}

.tien-switch.large.square>input:checked ~ .icon:after {
    left: 28px
}

.tien-switch.large.square-text {
    height: 30px;
    padding-left: 68px
}

.tien-switch.large.square-text>.icon {
    width: 68px
}

.tien-switch.large.square-text>.icon:before {
    width: 66px
}

.tien-switch.large.square-text>.icon:after {
    width: 28px
}

.tien-switch.large.square-text>.text {
    width: 68px;
    height: 30px;
    line-height: 30px;
    font-size: 100%
}

.tien-switch.large.square-text>.text:after {
    width: 38px
}

.tien-switch.large.square-text>input:checked ~ .icon:after {
    left: 38px
}

.tien-switch.vusui>.icon,.tien-switch.vusui>input:checked ~ .icon {
    border-color: #199583;
    background-color: #199583
}

.tien-switch.vusui>.icon:after {
    box-shadow: 0 0 0 1px rgba(25,149,131,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.red>.icon,.tien-switch.red>input:checked ~ .icon {
    border-color: #e54d42;
    background-color: #e54d42
}

.tien-switch.red>.icon:after {
    box-shadow: 0 0 0 1px rgba(0,119,238,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.green>.icon,.tien-switch.green>input:checked ~ .icon {
    border-color: #39b54a;
    background-color: #39b54a
}

.tien-switch.green>.icon:after {
    box-shadow: 0 0 0 1px rgba(0,119,238,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.cyan>.icon,.tien-switch.cyan>input:checked ~ .icon {
    border-color: #1cbbb4;
    background-color: #1cbbb4
}

.tien-switch.cyan>.icon:after {
    box-shadow: 0 0 0 1px rgba(34,170,68,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.brown>.icon,.tien-switch.brown>input:checked ~ .icon {
    border-color: #a5673f;
    background-color: #a5673f
}

.tien-switch.brown>.icon:after {
    box-shadow: 0 0 0 1px rgba(255,153,51,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.pink>.icon,.tien-switch.pink>input:checked ~ .icon {
    border-color: #e03997;
    background-color: #e03997
}

.tien-switch.pink>.icon:after {
    box-shadow: 0 0 0 1px rgba(221,85,68,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.mauve>.icon,.tien-switch.mauve>input:checked ~ .icon {
    border-color: #9c26b0;
    background-color: #9c26b0
}

.tien-switch.mauve>.icon:after {
    box-shadow: 0 0 0 1px rgba(51,170,238,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.purple>.icon,.tien-switch.purple>input:checked ~ .icon {
    border-color: #6739b6;
    background-color: #6739b6
}

.tien-switch.purple>.icon:after {
    box-shadow: 0 0 0 1px rgba(153,136,255,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.black>.icon,.tien-switch.black>input:checked ~ .icon {
    border-color: #333;
    background-color: #333
}

.tien-switch.black>.icon:after {
    box-shadow: 0 0 0 1px rgba(51,51,51,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.grey>.icon,.tien-switch.grey>input:checked ~ .icon {
    border-color: #8799a3;
    background-color: #8799a3
}

.tien-switch.grey>.icon:after {
    box-shadow: 0 0 0 1px rgba(150,150,150,.5),0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.white>.icon,.tien-switch.white>input:checked ~ .icon {
    border-color: #fff;
    background-color: transparent
}

.tien-switch.white>.icon:before {
    background-color: transparent
}

.tien-switch.white>.icon:after {
    box-shadow: 0 0 0 1px #fff,0 3px 0 rgba(0,0,0,.1)
}

.tien-switch.white>input:checked ~ .icon {
    background-color: rgba(255,255,255,.2)
}

.tien-switch.white>.text {
    color: #fff
}

.tien-radio.default>.icon,.tien-radio.tick.default>.icon,.tien-radio.tick-o.default>.icon,.tien-checkbox.default>.icon,.tien-checkbox.bedye.default>.icon,.tien-checkbox.square.default>.icon {
    border-color: #0081ff
}

.tien-switch.default>.icon {
    border-color: #0081ff;
    background-color: #0081ff
}

.tien-switch.default>.icon:after {
    box-shadow: 0 0 0 1px rgba(0,0,0,.15),0 3px 0 rgba(0,0,0,.1)
}



